<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <h2>for-arr</h2>
        <ul>
            <li v-for="item, index in arr">item is {{item}}, index is {{index}}</li>
        </ul>

        <h2>for-object</h2>
        <ul>
            <li v-for="value,key,index in obj">
                obj-key={{key}},
                obj-value={{value}},
                obj-index={{index}},
            </li>
        </ul>
    </div>
    
    <script type="text/javascript">
        const app = Vue.createApp({
            data(){
                return{
                    arr:[4,3,2,1,0],
                    obj:{
                        a:1,
                        b:2,
                        c:3,
                        d:4
                    }
                }
            },
            methods: {
            }
        })
        app.mount('#app')
    </script>
</body>
</html>